<template>
  <div>
    <div class="head">
      <p class="title">{{ title }}</p>
      <div class="userSet">
         <!-- 这个槽口放头像图片的 -->
        <slot name="usericon"></slot>
        <p class="nickName item">{{ nickName }}</p>
        <p><el-avatar icon="el-icon-user-solid" class="item userIcon"></el-avatar></p>
        <p><i class="el-icon-s-tools item"></i></p>
        <p class="item setTitle">{{ msg }}</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    title: { type: String, default: "设置" }, //传标题
    nickName: { type: String, default: "橘子哒哒" }, //传昵称
  },
  data() {
    return {
      msg: "设置",
    };
  },
};
</script>

<style lang="less" scoped>
.head {
  display: flex;
  color: #333;
  font-size: 12px;
  overflow: hidden;
  .logo{
    text-align: center;
    height: 100%;
    line-height: 66px;
    color: #fff;
    background-color: #4da1ff;
  }
  .title {
    color: #4da1ff;
    font-weight: 600;
    padding-top: 30px;
    text-align: center;
    width: 100px;
    font-size: 16px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }
  .userSet{
    position: relative;
    width: 1276px;
    display: flex;
    padding-top: 30px;
    justify-content: flex-end;
    .item{
      margin: 0 5px;
    }
    .userIcon{
      position: absolute;
      font-size: 18px;
      width: 30px;
      height: 30px;
      line-height: 30px;
      right: 140px;
      bottom: 0px;
    }
    .setTitle{
      margin-right: 30px;
      cursor: pointer;
    }
  }
}
/deep/.el-icon-s-tools{
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
</style>
